package com.xiaoq.sites.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.xiaoq.sites.entity.SitesPointArEntity;
import com.xiaoq.sites.repository.ISitesPointArRepository;
import com.xiaoq.sites.service.ISitesPointArService;

@Component
public class SitesPointArServiceImpl implements ISitesPointArService {

	@Autowired
	private ISitesPointArRepository sitesPointArRep;
	
	@Override
	public List<SitesPointArEntity> findPointArList(String sitesId) {
		return sitesPointArRep.findPointArList(sitesId);
	}

	@Override
	public boolean addPointAr(SitesPointArEntity sitesPointAr) {
		return sitesPointArRep.addPointAr(sitesPointAr);
	}

	@Override
	public boolean deletePointAr(String id) {
		return sitesPointArRep.deletePointAr(id);
	}

	@Override
	public SitesPointArEntity findById(String id) {
		return sitesPointArRep.findById(id);
	}

}
